package com.class1group3.demo.service;

import com.class1group3.demo.pojo.Books;

import java.util.List;
import java.util.Map;

public interface BooksService {
    Books getBooksById(Integer id);
    Map<String, Object> getBooksByIdAsMap(Integer id);
    List<Map<String, Object>> groupByRatingDistribution();
    List<Map<String, Object>> groupByAuthorsStats();
    List<Map<String, Object>> selectYearlyBookCount();
    List< Map<String, Object>> getBooksByOrder(Books  books);
    List<Map<String, Object>> countBooksByRating();
    List<Map<String, Object>> countHotPublisher();
    //Map<String, Object> calculateYearlyStats();
}
